// 自动生成模板SysTaskLog
package model

import (
	"github.com/flipped-aurora/gin-vue-admin/server/plugin/sysTask/global"
	"gorm.io/gorm"
	"time"
)

// sysTaskLog表 结构体  SysTaskLog
type SysTaskLog struct {
	ID             int64                 `gorm:"primarykey" json:"ID"`                                                                                // 主键ID
	CreatedAt      *time.Time            `json:"createdAt" form:"createdAt" gorm:"column:created_at;comment:;"`                                       //创建时间
	UpdatedAt      *time.Time            `json:"updatedAt" form:"updatedAt" gorm:"column:updated_at;comment:;"`                                       //更新时间
	DeletedAt      gorm.DeletedAt        `gorm:"index" json:"-"`                                                                                      // 删除时间
	TaskId         *int16                `json:"taskId" form:"taskId" gorm:"column:task_id;comment:任务id;"`                                            //任务id
	TaskName       *string               `json:"taskName" form:"taskName" gorm:"column:task_name;comment:任务名称;size:32;"`                              //任务名称
	CronExpression *string               `json:"cronExpression" form:"cronExpression" gorm:"column:cron_expression;comment:cron_expression;size:64;"` //cron_expression
	InvokeTarget   *string               `json:"invokeTarget" form:"invokeTarget" gorm:"column:invoke_target;comment:invoke_target;size:256;"`        //invoke_target
	Timeout        *int64                `json:"timeout" form:"timeout" gorm:"column:timeout;comment:;"`                                              //timeout
	RetryTimes     *int8                 `json:"retryTimes" form:"retryTimes" gorm:"column:retry_times;comment:;"`                                    //retryTimes
	StartTime      *time.Time            `json:"startTime" form:"startTime" gorm:"column:start_time;comment:;"`                                       //startTime
	EndTime        *time.Time            `json:"endTime" form:"endTime" gorm:"column:end_time;comment:;"`                                             //endTime
	Status         *global.SysTaskStatus `json:"status" form:"status" gorm:"column:status;comment:;"`                                                 //status
	Result         *string               `json:"result" form:"result" gorm:"column:result;comment:;size:191;"`                                        //result
	TotalTime      *int32                `json:"totalTime" form:"totalTime" gorm:"column:total_time;comment:;"`                                       //totalTime
}

// TableName sysTaskLog表 SysTaskLog自定义表名 sys_task_log
func (SysTaskLog) TableName() string {
	return "sys_task_log"
}
